package com.zxl.always.on.display.model.bean;

/**
 * Created by Administrator on 2018/3/2.
 */

public class PaletteItem {

    private int mColor;

    private int[] mColors;

    private float[] mPositions;

    private Type mType = Type.SOLID;

    public PaletteItem(int mColor) {
        this.mColor = mColor;
    }

    public PaletteItem(int[] mColors, float[] mPositions) {
        this.mColors = mColors;
        this.mPositions = mPositions;
        mType = Type.GRADIENT;
    }

    public Type getType() {
        return mType;
    }

    public float[] getPositions() {
        return mPositions;
    }

    public int getColor() {
        return mColor;
    }

    public int[] getColors() {
        return mColors;
    }

    public enum Type {

        SOLID, GRADIENT

    }



}
